package com.speaktoitcookbook.bean;

import java.util.Date;

/**
 * 菜谱实体
 * 
 * @author 赛艳志
 * 
 */
public class Cookbook {
    private long cookbookID;
    private String dishName;
    private String dishImage;
    private String dishInfo;
    private Date dishDate;
    private long dishHits;
    private long shareNum;
    private int month;

    /**
     * 默认构造函数
     */
    public Cookbook() {
        this.cookbookID = 0L;
        this.dishDate = new Date();
        this.dishHits = 0;
        this.dishImage = "";
        this.dishInfo = "";
        this.dishName = "";
        this.shareNum = 0;
        this.setMonth(-1);
    }

    /**
     * 获取菜谱ID
     * 
     * @return 菜谱ID
     */
    public long getCookbookID() {
        return cookbookID;
    }

    /**
     * 设置菜谱ID
     * 
     * @param cookbookID
     *            菜谱ID
     */
    public void setCookbookID(long cookbookID) {
        this.cookbookID = cookbookID;
    }

    /**
     * 获取菜谱名
     * @return 菜谱名
     */
    public String getDishName() {
        return dishName;
    }

    /**
     * 设置菜谱名
     * @param dishName
     *            菜谱名
     */
    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    /**
     * 获取菜谱图片
     * @return 菜谱图片
     */
    public String getDishImage() {
        return dishImage;
    }

    /**
     * 设置菜谱图片
     * @param dishImage
     *            菜谱图片
     */
    public void setDishImage(String dishImage) {
        this.dishImage = dishImage;
    }

    /**
     * 获取菜谱介绍
     * @return 菜谱介绍
     */
    public String getDishInfo() {
        return dishInfo;
    }

    /**
     * 设置菜谱介绍
     * @param dishInfo
     *            菜谱介绍
     */
    public void setDishInfo(String dishInfo) {
        this.dishInfo = dishInfo;
    }

    /**
     * 获取菜谱录入时间
     * @return 菜谱录入时间
     */
    public Date getDishDate() {
        return dishDate;
    }

    /**
     * 设置菜谱录入时间
     * @param dishDate
     *            菜谱录入时间
     */
    public void setDishDate(Date dishDate) {
        this.dishDate = dishDate;
    }

    /**
     * 获取菜谱点击数
     * @return 菜谱点击数
     */
    public long getDishHits() {
        return dishHits;
    }

    /**
     * 设置菜谱点击数
     * @param dishHits
     *            菜谱点击数
     */
    public void setDishHits(long dishHits) {
        this.dishHits = dishHits;
    }

    /**
     * 获取菜谱分享数
     * @return 菜谱分享数
     */
    public long getShareNum() {
        return shareNum;
    }

    /**
     * 设置菜谱分享数
     * @param shareNum
     *            菜谱分享数
     */
    public void setShareNum(long shareNum) {
        this.shareNum = shareNum;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }
}
